package com.example.pojo.entitly;

import java.io.Serializable;

/**
 * 
 * @TableName drug_user
 */
public class DrugUser implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String username;

    /**
     * 
     */
    private String password;

    /**
     * 资格证编号
     */
    private String certificationkey;

    /**
     * 身份
     */
    private String number;

    /**
     * 
     */
    private String verify;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getUsername() {
        return username;
    }

    /**
     * 
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 
     */
    public String getPassword() {
        return password;
    }

    /**
     * 
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 资格证编号
     */
    public String getCertificationkey() {
        return certificationkey;
    }

    /**
     * 资格证编号
     */
    public void setCertificationkey(String certificationkey) {
        this.certificationkey = certificationkey;
    }

    /**
     * 身份
     */
    public String getNumber() {
        return number;
    }

    /**
     * 身份
     */
    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * 
     */
    public String getVerify() {
        return verify;
    }

    /**
     * 
     */
    public void setVerify(String verify) {
        this.verify = verify;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DrugUser other = (DrugUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getCertificationkey() == null ? other.getCertificationkey() == null : this.getCertificationkey().equals(other.getCertificationkey()))
            && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
            && (this.getVerify() == null ? other.getVerify() == null : this.getVerify().equals(other.getVerify()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getCertificationkey() == null) ? 0 : getCertificationkey().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getVerify() == null) ? 0 : getVerify().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", password=").append(password);
        sb.append(", certificationkey=").append(certificationkey);
        sb.append(", number=").append(number);
        sb.append(", verify=").append(verify);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}